package cn.wsalix.admin.status;

public enum UserEnum {
	edit("new", "编辑"), invocation("invocation", "启用"), lock("2", "锁定"), freezes(
			"2", "冻结"), delete("3", "删除"), ;
	private String code;
	private String title;

	UserEnum(String code, String title) {
		this.code = code;
		this.title = title;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public static UserEnum findByCode(String code) {
		for (UserEnum userKind : UserEnum.values()) {
			if (userKind.getCode().equals(code)) {
				return userKind;
			}
		}
		return null;
	}

}
